window.onload=function (){
    getTop()
}


/**
 *
 */
function getTop(){
   $ajax({

       url:otop,
       method:"get",
       success:function (e){
           console.log(e)
           if(e.code===200){
               const osonglistul=document.querySelector('.song-list-ul');
               let result=e.list;
               console.log(result)
               let str='';
                result.forEach(item=>{
                    str=+` <li class="song-list-li">
                                <span class="song-list-num">1</span>
                                <span class="song-list-rank">20%</span>

                                <div class="song-main">
                                    <a href="" class="song-link-img">
                                        <img src="images/song/1.webp" alt="" class="song-link-pic">
                                    </a>
                                    <a href="" title="可" class="song-name">可</a>
                                    <div class="song-dropmenu">
                                        <a href="#" class="song-dropmenu-bgs song-dropmenu-bg1" title="播放"></a>
                                        <a href="#" class="song-dropmenu-bgs song-dropmenu-bg2" title="添加到歌单"></a>
                                        <a href="#" class="song-dropmenu-bgs song-dropmenu-bg3" title="分享"></a>
                                    </div>
                                </div>
                                <a href="" class="songer-link">薛之谦 /张靓颖</a>
                                <span class="song-time">04:40</span>
                            </li>`
                })

           }
       }
   })
}